import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class MyButton extends StatelessWidget {
  const MyButton({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    PointerEvent? _event;
    return GestureDetector(
      child: Container(
        width: 200,
        height: 300,
        alignment: Alignment.center,
        color: Colors.blue,
        child: Text(
          "${_event?.localPosition}",
          style: const TextStyle(color: Colors.white),
        ),
      ),

    );
  }
}
